package com.nexus.all.model;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 笔记内容表
 *
 * @TableName nexus_note_content
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@TableName(value = "nexus_note_content", autoResultMap = true)
public class NoteContent {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(hidden = true)
    private Long id;
    /**
     * 笔记内容
     */
    @TableField(value = "content")
    private String content;
    /**
     * 笔记配图url(可多个，分号分割，最多6个)
     */
    @TableField(value = "content_ims")
    private String contentIms;
    /**
     * 推荐商家（用户笔记内可选择推荐商家）
     */
    @TableField(value = "merchant")
    private String merchant;
    /**
     * 菜品推荐
     */
    @TableField(value = "menu_command")
    private String menuCommand;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "is_deleted")
    private Boolean isDeleted;
}